package com.nuit.cxl.springboot_mybatis.controller;


import com.nuit.cxl.springboot_mybatis.dao.AccountDao;
import com.nuit.cxl.springboot_mybatis.domain.TblAccount;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
@ResponseBody
public class BiliController {

    @Autowired
    private AccountDao accountDao;

    @RequestMapping("/bili/{id}")
    public String bili(@PathVariable Integer id) {
        System.out.println(id);
//        TblAccount tblAccount = accountDao.findById(id);
//        System.out.println(tblAccount.toString());
//        return tblAccount;
        return "";
    }
}
